package com.qf.hospital.system.mapper;

import com.qf.hospital.system.entity.Report;
import com.qf.hospital.system.vo.ReportVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReportMapper {
    int deleteByPrimaryKey(Integer reportid);

    int insert(Report record);

    int insertSelective(Report record);

    Report selectByPrimaryKey(Integer reportid);

    int updateByPrimaryKeySelective(Report record);

    int updateByPrimaryKey(Report record);

    // 删除挂号的用户信息
    void deleteByTimeAndState();

    // 查询用户的挂号信息
    List<ReportVO> findByCCAndCondition(@Param("cc")Integer cc, @Param("value")String name);

    // 查询去重信息
    Integer findCountByPhoneOrCarid(@Param("phoneOrCarid")String phoneOrCarid,@Param("value")String value);

    // 查询指定患者的病因
    String findPathogenyByReportId(@Param("reportId")Integer reportId);

    // 修改患者病历
    Integer updatePatientPathogenyByReportId(@Param("bing")String bing,@Param("reportId")Integer reportId);

}